package com.scoressystem.mapper;

import com.scoressystem.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface TeacherMapper {
    List<Teacher> selectAllTeachers();
    int insertTeacher(Teacher teacher);
    int updateTeacher(Teacher teacher);
    int deleteTeacher(int id);
    Teacher selectTeacherById(int id);
    List<Teacher> selectTeacherByName(String name);
    List<Teacher> selectByPage(Map<String,Object> map);
    Map<String,Object> selectByInfo();
    Teacher selectTeacherlogin(@Param("tusername") String tusername, @Param("tpass")String tpass);
    Integer updateTeacherpass( @Param("tpass")String tpass,@Param("tusername") String tusername);
}
